package zkclient.dwj.cn;

import org.I0Itec.zkclient.ZkClient;
import org.I0Itec.zkclient.serialize.SerializableSerializer;

/**
 * Created by Administrator on 2017/11/13 0013.
 */
public class NodeDelete {
    public static void main(String[] args) {
        ZkClient zc = new ZkClient("192.168.110.134:2181", 10000, 10000, new SerializableSerializer());
        System.out.println("connect ok");

        boolean e1 = zc.delete("/dwj");//没有子节点
        boolean e2 = zc.deleteRecursive("/dwj");//有子节点，循环删除
    }
}
